import Mock from 'mockjs'
Mock.mock('http://localhost:3000/learningSpace/admin/find?limit=2&page=1', 'get', {
  // /post|get/i 匹配post和get模式 也可以用'post'或'get'
  // 属性 list 的值是一个数组，其中含有 1 到 10 个元素
    "status": 200,
    "message": "查询成功",
    "data": {
        "total": 3,
        "page": 1,
        "nextPage": null,
        "list": [
            {
                "initialLevel": 1,
                "learnPurpose": 2,
                "planning": 4,
                "learnStyle": 3,
                "style":["言语型","实践型"],
                "_id": "6064b3a1db71d6220cbe7ade",
                "username": "heathen",
                "password": "$2b$10$.miU/Qs1cw0bnCVXHUxwGuBulT75Nyn.1N73YoMZQ0sjmLc0P31RK"
            },
            {
                "initialLevel": 1,
                "learnPurpose": 2,
                "planning": 4,
                "learnStyle": 3,
                "style":["言语型","实践型"],
                "_id": "6065a66ec82e4b555c2fb025",
                "username": "Sam",
                "password": "$2b$10$Ae8PdAtJhQLCqN8CLABSqu9p4b/0/QuKvFrzTREHTtBP39/vflmiS"
            },
            {
                "initialLevel": 1,
                "learnPurpose": 3,
                "planning": 4,
                "learnStyle": 2,
                "style":["言语型","实践型"],
                "_id": "606925dafa69d663d49b11d7",
                "username": "Sandy",
                "password": "$2b$10$v7RTeb3Ez0siXzuaDgDXFOl56Zweapy9XKH34gj2ouNQWKyRHxEeO"
            }
        ]
    }
}
)
Mock.mock('http://localhost:3000/learningSpace/admin/delete?id=606925dafa69d663d49b11d7', 'delete', {
  // /post|get/i 匹配post和get模式 也可以用'post'或'get'
  // 属性 list 的值是一个数组，其中含有 1 到 10 个元素
  'status':200,
  'message':"chenggong",
  'data': {
      
  }
}
)
Mock.mock('http://localhost:3000/learningSpace/admin/change', 'put', {
  // /post|get/i 匹配post和get模式 也可以用'post'或'get'
  // 属性 list 的值是一个数组，其中含有 1 到 10 个元素
  'status':200,
  'message':"chenggong",
  'data': {
      
  }
}
)
// {
//     "status": 200,
//     "message": "查询成功",
//     "data": {
//         "total": 1,
//         "page": 1,
//         "nextPage": null,
//         "list": [
//             {
//                 "initialLevel": 1,
//                 "learnPurpose": 2,
//                 "planning": 4,
//                 "learnStyle": 3,
//                 "_id": "6064b3a1db71d6220cbe7ade",
//                 "username": "heathen",
//                 "password": "$2b$10$.miU/Qs1cw0bnCVXHUxwGuBulT75Nyn.1N73YoMZQ0sjmLc0P31RK"
//             },
//             {
//                 "initialLevel": 1,
//                 "learnPurpose": 2,
//                 "planning": 4,
//                 "learnStyle": 3,
//                 "_id": "6065a66ec82e4b555c2fb025",
//                 "username": "Sam",
//                 "password": "$2b$10$Ae8PdAtJhQLCqN8CLABSqu9p4b/0/QuKvFrzTREHTtBP39/vflmiS"
//             },
//             {
//                 "initialLevel": 1,
//                 "learnPurpose": 3,
//                 "planning": 4,
//                 "learnStyle": 2,
//                 "_id": "606925dafa69d663d49b11d7",
//                 "username": "Sandy",
//                 "password": "$2b$10$v7RTeb3Ez0siXzuaDgDXFOl56Zweapy9XKH34gj2ouNQWKyRHxEeO"
//             }
//         ]
//     }
// }